<%--
    Document   : agreusuario
    Created on : 29-06-2011, 05:42:11 PM
    Author     : Fabian
--%>

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
         pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@taglib  prefix="sj" uri="/struts-jquery-tags" %>
<%@taglib  prefix="sjg" uri="/struts-jquery-grid-tags" %>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <sj:head jqueryui="true" jquerytheme="blitzer"  locale="es"></sj:head>
        <title>Agregar Usuario</title>
        <link href="css/base.css" rel="stylesheet" type="text/css" />

    </head>
    <body>

        <div id="fotolog" style="padding-bottom:150px;">
            <div id="fondoSup"> <h1>Usuario</h1>
            </div>

            <div id="centercolumnform">
        <s:url  id="remoteurl" action="jsonsample" />

        <sjg:grid
            id="gridtable"
            caption="Customer Examples"
            dataType="json"
            href="%{remoteurl}"
            pager="true"
            gridModel="usuarios"
            rowList="10,15,20"
            rowNum="15"
            rownumbers="true"
            editurl="%{editurl}"
            navigator="true"
            navigatorSearch="true"
            navigatorSearchOptions="{sopt:['eq','ne','lt','gt']}"
            navigatorRefresh="true"
            navigatorDelete="true"
            >
            <sjg:gridColumn name="nombreUsuario" index="nombreUsuario" title="ID"  sortable="false"  search="true" searchoptions="{sopt:['eq','ne','lt','gt']}"/>
            <sjg:gridColumn name="contrasenaUsuario" index="contrasenaUsuario" title="Name" sortable="true" search="false"
                            editable="true"
                            edittype="select"
                            editoptions="{value:'France:France;USA:USA;Australia:Australia;Norway:Norway;Poland:Poland;Germany:Germany;Spain:Spain'}"/>
        </sjg:grid>

        <s:form action="jsonsample">
            <s:submit type="image" src="images/registrar.jpg"/>
          </s:form>

                
            </div>

        </div>
    </body>
</html>
